﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ViewModel
{
    public static class ColorCode
    {
        public static string GetColor(this Priority e)
        {
            string color = "";
            switch (e)
            {
                case Priority.Urgent:
                    color= "Red";
                    break;
                case Priority.High:
                    color = "Orange";
                    break;
                case Priority.Medium:
                    color = "SteelBlue";
                    break;
                case Priority.Low:
                    color = "White";
                    break;
                default:
                    color = "White";
                    break;
            }
            return color;
        }

        public static System.Drawing.Brush GetBrush(this Priority e)
        {
            Brush color = Brushes.Black;
            switch (e)
            {
                case Priority.Urgent:
                    color = Brushes.Red;
                    break;
                case Priority.High:
                    color = Brushes.Orange;
                    break;
                case Priority.Medium:
                    color = Brushes.SteelBlue;
                    break;
                case Priority.Low:
                    color = Brushes.White;
                    break;
                default:
                    color = Brushes.White;
                    break;
            }
            return color;
        }
    }
}
